from string import Template

t = Template('"c${i}${j}",')
for i in range(4):
    for j in range(81):
        print(t.substitute(i=i,j=j))

t = Template('"hr${i}${j}","hb${i}${j}","hc${i}${j}",')
for i in range(4):
    for j in range(9):
        print(t.substitute(i=i,j=j))

t = Template('"c${i}${j}":["hr${i}${a}","hc${i}${b}","hb${i}${c}"],')
for i in range(4):
    for j in range(81):
        print(t.substitute(i=i,j=j,b=j%9,a=j//9,c=round((j%9)//3+(j/9)//3)))
